import React from 'react'
import Tabber from './components/tabber/Tabber'
import Home from './view/home/Home'

class App extends React.Component{
  constructor(props) {
    super(props)
    this.state = {
      tabberlist: ['首页','分类','发现','购物车','我的'],
      homelist: ['文玩','首饰','服饰','家居','玩具','艺术品'],
      flag: false,
    }
  }
  render() {
    return (
      <div className="App">
        <Home
          hlist = {this.state.homelist}
          hflag = {this.state.flag}
          click = {this.handleClick.bind(this)}
        >
        </Home>
        <Tabber
          list = {this.state.tabberlist}
        >
        </Tabber>
      </div>
    )
  }
  handleClick() {
      console.log(1111);
      const flag = true;
      this.setState({
        flag,
      })
  }
}
export default App